module.exports = {
    env: {
      NODE_ENV: '"development"',
    },
    defineConstants: {
      BASE_URL: '"http://localhost:1337"'
    //   BASE_URL: '"http://192.168.50.42:1337"'
  
    },
    mini: {
      enableSourceMap: true,
      miniCssExtractPluginOption: {
        ignoreOrder: true
      },
      webpackChain: (chain, webpack) => {
        chain.merge({
          plugin: {
            install: {
              plugin: require('terser-webpack-plugin'),
              args: [
                {
                  terserOptions: {
                    compress: true, // 默认使用terser压缩
                    // mangle: false,
                    keep_classnames: true, // 不改变class名称
                    keep_fnames: true, // 不改变函数名称
                  },
                },
              ],
            },
          },
        })
      },
      debugReact: true,
    },
    h5: {}
  }
  